﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeGenerator.Core
{
    /// <summary>
    /// BuildH框架代码创建
    /// </summary>
    public class BuildHCodeCreate
    {
        /// <summary>
        /// 命名空间
        /// </summary>
        public string NameSpace { get; set; }
        /// <summary>
        /// 区域命名
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 表主键
        /// </summary>
        public string PrimaryKey { get; set; }
        /// <summary>
        /// 表信息
        /// </summary>
        public TableInfo TableInfo { get; set; }
        /// <summary>
        /// 被过滤掉前缀的表名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否显示刷新按钮
        /// </summary>
        public bool Refresh { get; set; }
        /// <summary>
        /// 是否显示添加按钮
        /// </summary>
        public bool Add { get; set; }
        /// <summary>
        /// 是否显示编辑按钮
        /// </summary>
        public bool Edit { get; set; }
        /// <summary>
        /// 是否显示详细按钮
        /// </summary>
        public bool Detail { get; set; }
        /// <summary>
        /// 是否显示删除按钮
        /// </summary>
        public bool Delete { get; set; }
        /// <summary>
        /// 是否显示退出按钮
        /// </summary>
        public bool Close { get; set; }

        /// <summary>
        /// 是否开启视图权限
        /// </summary>
        public bool ViewAuthorization { get; set; }
        /// <summary>
        /// 是否开启按钮权限
        /// </summary>
        public bool BtnAuthorization { get; set; }

        /// <summary>
        /// 列表页创建
        /// </summary>
        public List<CreateListCode> ListCode { get; set; }
        /// <summary>
        /// 表单页创建
        /// </summary>
        public List<CreateFormCode> FormCode { get; set; }
    }
}
